package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * spu信息
 *
 * @author haitao
 * @email haitaoss@aliyun.com
 * @date 2020-06-13 22:46:15
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {
    /**
     * 修改spu的状态
     *
     * @param spuId 商品spuid
     * @param code  spu的状态
     */
    void updateSpuStatus(@Param("spuId") Long spuId, @Param("code") int code);

}
